<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title><ui:insert name="title">Home</ui:insert></title>
        <!--<link rel="stylesheet" type="text/css" href="css.css" />-->
         <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>RD Travelshop - <ui:insert name="title"></ui:insert></title>
         </f:facet>
    </h:head>
    <h:body>
        <h:form>
             <p:layout fullPage="true">

                <p:layoutUnit position="north" size="150" resizable="true" closable="true" collapsible="true" >
                    <h1>RD Travelshop - <ui:insert name="title"></ui:insert></h1>
                </p:layoutUnit>

                <!--<p:layoutUnit position="south" size="35" closable="true" collapsible="true">
                </p:layoutUnit>-->

                <p:layoutUnit position="west" size="175" header="Inklappen" collapsible="true">
                    <p:menu>
                        
                        <p:menuitem value="Home" url="../index.xhtml" />
                        <c:if test="#{klantController.ingelogd}"> 
                            
                            <p:menuitem value="Uitloggen" actionListener="#{klantController.uitloggen()}" />
                            <p:menuitem value="Overzicht Boekingen" url="../overzichtklant.xhtml" />
                            
                        </c:if>
                        <c:if test="#{!klantController.ingelogd}"> 
                        <p:menuitem value="Inloggen" url="../login.xhtml" />
                        <p:menuitem value="Registreren" url="../registreer.xhtml" />
                        </c:if>
                        <p:menuitem value="Zoeken" url="../zoeken.xhtml" />
                        <p:menuitem value="Boeking" url="#" />
                        
                        <c:if test="#{klantController.admin}"> 
                            
                            <p:submenu label="Admin">
                                <p:menuitem value="Home" url="admin.xhtml" />
                                <p:menuitem value="Vervoer" url="vervoer.xhtml" />
                                <p:menuitem value="Betaalwijze" url="betaalwijze.xhtml" />
                                <p:menuitem value="Continent" url="continent.xhtml" />
                                <p:menuitem value="Gemeente" url="gemeente.xhtml" />
                                <p:menuitem value="Periode" url="periode.xhtml" />
                                <p:menuitem value="Bestemming" url="bestemming.xhtml" />
                                <p:menuitem value="Klant" url="klant.xhtml" />
                                <p:menuitem value="Reis" url="reis.xhtml" />
                            </p:submenu>
                            
                        </c:if>
                        
                    </p:menu>
                </p:layoutUnit>

                <p:layoutUnit position="center" styleClass="content"> 
                    <ui:insert name="content"></ui:insert>
                </p:layoutUnit>

            </p:layout>
        </h:form>
    </h:body>
</html>

